package object3.package1;

public abstract class Shape {
    double area;    //面积
    public final static double pi = 3.14;   //π的值
    //构造方法
    public Shape() {
        this.area = 0;
    }
    //获取面积方法
    public double getArea() {
        return area;
    }
    //画图抽象方法
    public abstract void draw();
    //面积计算抽象方法
    public abstract void calcArea();
}
